home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-09-12  |  3.1 KB  |  170 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PartInfo.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWPART_FR
  15. #include "FWPart.fr"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. #ifndef SLGCONST_K
  27. #include "SLGConst.k" 
  28. #endif
  29.  
  30. #ifndef FWVIEWS_FR
  31. #include "FWViews.fr"
  32. #endif
  33.  
  34. #ifndef FWWINDOW_K
  35. #include "FWWindow.k"
  36. #endif
  37.  
  38. #ifndef INTLRES_K
  39. #include "IntlRes.k"
  40. #endif
  41.  
  42. //----------------------------------------------------------------------------------------
  43. //    PartInfo Resource
  44. //----------------------------------------------------------------------------------------
  45.  
  46. resource FW_RPartInfo(kPartInfoID)
  47. {
  48.     // ----- Icon ID
  49.     kPartIconID,
  50.     
  51.     // ----- MenuBar ID
  52.     kMenuBar,
  53.  
  54.     // ----- Document Window ID
  55.     kDocumentWindowID,
  56.     
  57.     // ----- Part Name
  58.     kODFIntlTestEditorUserString,
  59.     
  60.     // ----- PartKind
  61.     kODFIntlTestKind
  62. };
  63.  
  64. //----------------------------------------------------------------------------------------
  65. //    Document Window Resource
  66. //----------------------------------------------------------------------------------------
  67.  
  68. resource FW_RDocumentWindow(kDocumentWindowID)
  69. {
  70.     // ----- Size
  71.     {FW_FIX(320), FW_FIX(260)},
  72.     
  73.     // ----- Position
  74.     {FW_FIX(0), FW_FIX(0)},        // (0,0) means default position
  75.     
  76.     // ----- Style
  77.     FW_kDocumentWindow,
  78.  
  79.     // ----- Presentation
  80.     kMainPresentation
  81. };
  82.  
  83. //----------------------------------------------------------------------------------------
  84. //    About Resource
  85. //----------------------------------------------------------------------------------------
  86.  
  87. resource FW_RAbout(kAboutBox)
  88. {
  89.     // ----- Icon ID
  90.     kPartIconID,
  91.     // ----- Part Name
  92.     FW_RStyledText
  93.     (
  94.         FW_FIX(18), 
  95.         FW_kBold, 
  96.         "times", 
  97.         "ODFIntlText"
  98.     ),
  99.     // ----- Version Number
  100.     FW_RStyledText
  101.     (
  102.         FW_FIX(9),
  103.         FW_kPlain,
  104.         "geneva",
  105.         "Version ODF R2"
  106.     ),
  107.     // ----- Credits
  108.     FW_RStyledText
  109.     (
  110.         FW_FIX(14),
  111.         FW_kPlain,
  112.         "osaka",
  113.         RJStringData
  114.         (
  115.             "ÇhÇéÇîÇåÇsÇÖÇòÇîÇÕééå±Ç≈Ç∑ÅB\r\r\r"
  116.             "ÇvÇíÇâÇîÇîÇÖÇéÅ@ÇÇÇô\r"
  117.             "ÇîÇàÇÖÅ@ÇnÇcÇeÅ@ÇîÇÖÇÅÇçÅD\r"
  118.         )
  119.     ),
  120.     // ----- ButtonString
  121.     RJStringData("OK"),
  122.     // ----- ButtonSize
  123.     {FW_FIX(80), FW_FIX(40)}
  124. };
  125.  
  126. //----------------------------------------------------------------------------
  127. // Strings for testing FW_RStringData resource
  128.  
  129. type RJString (TESTSTRINGRES)
  130. {
  131.     RJStringData;
  132. };
  133.  
  134. resource RJString (kDefaultJStringID)
  135. {
  136.     "ééå±Ç≈Ç∑ÅB"
  137. };
  138.  
  139. type REngString (TESTSTRINGRES)
  140. {
  141.     FW_RStringData;
  142. };
  143.  
  144. resource REngString (kDefaultEngStringID)
  145. {
  146.     "Testing…"
  147. };
  148.  
  149. //----------------------------------------------------------------------------
  150. // Strings for Test dialogs
  151.  
  152. resource RJString (kJTooBigStringID)
  153. {
  154.     "î‘çÜÇÕëÂÇ´âflǨNjÇ∑"    // bango ha ookisugimasu
  155. };
  156.  
  157. resource RJString (kJNthCharStringID)
  158. {
  159.     "î‘ñ⁄ÇÃéöÇÕÅu**ÅvÇ≈Ç∑"    // banme no ji ha ‘**’ desu
  160. };
  161.  
  162. //----------------------------------------------------------------------------
  163. // Strings for Japanese menu items
  164.  
  165. resource RJString (kJMenuStringID)
  166. {
  167.     "ééǵ"    // tamesi
  168. };
  169.  
  170.